package response

import "aiRole/internal/dto/request"

// 响应结构
type ChatResponse struct {
	ID      string `json:"id"`
	Object  string `json:"object"`
	Choices []struct {
		Message request.Message `json:"message"`
	} `json:"choices"`
}

// StreamChoice 流式返回结构
type StreamChoice struct {
	Delta struct {
		Role    string `json:"role,omitempty"`
		Content string `json:"content,omitempty"`
	} `json:"delta"`
	Index        int     `json:"index"`
	FinishReason *string `json:"finish_reason,omitempty"`
}

// StreamResponse 流式返回封装
type StreamResponse struct {
	ID      string         `json:"id"`
	Object  string         `json:"object"`
	Choices []StreamChoice `json:"choices"`
}
